<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title><s:text name="system.page.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/ready.js" charset="utf-8"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function trClick(id) {
		$("#sys_code_id").val(id);
	}
	function trdbClick(id) {
		$("#sys_code_id").val(id);
		editorSys_code();
	}
	function editorSys_code() {
		var id = $("#sys_code_id").val();
		if(id != "") {				
			sys_codeForm();
		} else {
			alert("<s:text name='system.rec.select'/>");
		}
	}
	function sys_codeForm() {
		formId.action = "findSys_code.do";
		formId.submit();
	}
</script>
</head>
<body>
<div class="tools">
	<div class="tool">
	<ul>
		<li>
			<div onclick="editorSys_code();"><img src="image/button/EDIT20.gif"/><span><s:text name='system.button.edit'/></span></div>
		</li>
	</ul>
	</div>
</div>
<form action="" method="post" id="formId" name="formId">
<input type="hidden" name="bean.code_num" id="sys_code_id">
<s:hidden name="pageBean.currentPage" id="currentPage"/>
<div class="tabledata">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" class="listtable">
		<tr class="trhead">
			<td><s:text name='system.rec.seq'/></td>
			<td><s:text name='rec.sys_code.code_num'/></td>
			<td><s:text name='rec.sys_code.code_name'/></td>
			<td><s:text name='rec.sys_code.code_len'/></td>
			<td><s:text name='rec.sys_code.code_type'/></td>
			<td><s:text name='rec.sys_code.style'/></td>
			<td><s:text name='rec.sys_code.preffix'/></td>
		</tr>
		<s:set name="seq" value="pageBean.startRow + 1" />
		<s:set name="start" value="#seq"/>
		<s:iterator value="list" id="l">
		<tr <s:if test="#seq%2==0">class="trodd"</s:if><s:else>class="treven"</s:else> trclikc="trClick('<s:property value="#l.code_num"/>')" trdbclick="trdbClick('<s:property value="#l.code_num"/>')">
			<td><s:property value="#seq"/> </td>
			<td><s:property value="#l.code_num"/></td>
			<td><s:property value="#l.code_name"/></td>
			<td><s:property value="#l.code_len"/></td>
			<td>
				<s:if test="#l.code_type!='0001'">
					<s:text name="rec.sys_code.one"/>
				</s:if>
				<s:else>
					<s:text name="rec.sys_code.two"/>
				</s:else>
			</td>
			<td><s:property value="#l.style"/></td>
			<td><s:property value="#l.preffix"/></td>
		</tr>
		<s:set name="seq" value="#seq + 1"/>
		</s:iterator>
		<s:set name="end" value="#seq-1"/>
	</table>
</div>
<div class="page">
	<div class="pagelist" style="width:100%;">
		
	</div>
</div>
</form>
</body>
</html>
